//
//  SHPicCollectionViewCell.m
//  UI_CarHome
//
//  Created by dllo on 15/11/3.
//  Copyright (c) 2015年 沈浩. All rights reserved.
//

#import "SHPicCollectionViewCell.h"
#import "SHHandle.h"
@implementation SHPicCollectionViewCell
- (void)dealloc
{
    [_photosDic release];
    [_picImageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.picImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100 * WID, 70 * HEI)];
        [self.contentView addSubview:self.picImageView];
        self.picImageView.backgroundColor = [UIColor blueColor];
        [_picImageView release];
    }
    return self;
}

- (void)setPhotosDic:(NSDictionary *)photosDic{
    if (_photosDic != photosDic) {
        [_photosDic release];
        _photosDic = [photosDic retain];
    }
    
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:photosDic[@"bigPath"]] placeholderImage:PLACEPICTURE];
}

@end
